package esya;

import java.sql.SQLException;

public class ProcessInp {
	
	
	
	/*
	public String[] inpSplit(String inp){
		String[] sp=inp.split(" ");
		return sp;
	}
	
	*/
	
	public String query(String inp) throws ClassNotFoundException, SQLException{
		
		String res=null;
		Query q= new Query();
		String[] sp = inp.split(" ");
		if(sp.length==2){
			String name=sp[1];
			res=q.NameQuery(name);	
		}
		else if(sp.length==3){
			if(sp[1].compareToIgnoreCase("time")==1){
				int tim=Integer.parseInt(sp[2]);
				
			}
		}
		
		System.out.println(res);
		return res;
	}
}